home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8799 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: isonews.bbn.hp.com!news
  2. From: Bruno RICHARD <bruno_richard@hp-france-om1.om.hp.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: findfirst, findnext in VC
  5. Date: 6 Mar 1996 12:52:46 GMT
  6. Organization: Hewlett-Packard
  7. Message-ID: <4hk1qu$jb7@isoit109.bbn.hp.com>
  8. References: <cosmosisDnrC31.I48@netcom.com> <64HfLHrrnTB@softsite.co.at>
  9. NNTP-Posting-Host: gplbrd.grenoble.hp.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2N (Windows; I; 16bit)
  14.  
  15. }Chris Akins  (cosmosis@netcom.com) wrote on 04.03.96
  16. }about "findfirst, findnext in VC":
  17. }
  18. }[snip]
  19. }> to findfirst().  findfirst() would return the file information for the
  20. ]> first file that met the pattern (i.e. dosname, filepath, file size,
  21. }> ect.).  findnext would return the next file that met the critira until
  22. }> the directory was exhausted of all matches.  I need a function in VC
  23. }> that does the same thing (or at the very least returns the fullpath
  24. }> name of the matches).
  25. }
  26. }Why don't you read the manuals or the online help ???
  27. }_findfirst();
  28. }
  29. }Walter Sommergruber
  30.  
  31. Take care, with new versions (32 bits) of VC++ there is no more
  32. findfirst()/findnext() functions. This is because of the new UNC and
  33. long file names conventions of Win32.
  34. You should then have a look to FindFirstFile() and FindNextFile()
  35. functions, which are part of the Win32 SDK.
  36.  
  37. -bruno
  38.  
  39.  
  40.